<?php

namespace app\adminapi\controller;

use think\Controller;

class BaseApi extends Controller
{
    public function _initialize(){
        parent::_initialize();
        header("Access-Control-Allow-Origin:*");
        header("Access-Control-Allow-Methods:GET,POST,PUT,DELETE,OPTIONS,PATCH");
        header("Access-Control-Allow-Headers:x-requested-with,content-type,Authorization,X-Requested-With,Content-Type,Accept,Origin,Authorization")

    }
}
